package cn.northsea.service;

import cn.northsea.pojo.*;

import java.util.List;

public interface PurchaseService {
    List<PurchaseVO> like(String purchaseOrder, String start, String end);

    void statusPur(Integer id);


    List<PurchaseTwoVO> findPurchase(String purchaseOrder, String start, String end);

    List<Supplier> findSupplier();

    Supplier findName(String supplierName);

    List<Material> findMaterials();

    void addPurchase(Integer supplierId, Integer materialId, Integer quantity,Integer userId);

    List<User> findUser();

    String addCaiGou(Integer purchaseId, Integer materialId);

    String delPurchase(Integer purchaseId);


    ErpSupplyOrder findpurchaseIdById(Integer purchaseId);

//    ErpMaterial findMaterialsById(Integer materialId);
//
//    User findUserById(Integer userId);

    void updatePurchase(Integer purchaseId,Integer supplierId, Integer materialId, Integer quantity, Integer userId);
}
